--[[-- @Author:      feilong-- @DateTime:    2020-11-13 23:05:48-- @Description: 同类型的节点可以用一个共享redis key 区分主从-- @Example:    公会节点--]]----------------------------------------------------------- class---------------------------------------------------------local Service = class("Service")function Service:ctor(name)    self.handler = new("master.handler")    self:register()endfunction Service:register()    --g.dispatch:register('start', handler(self, self.onStart))    self:callback("start", self.onStart)    g.dispatch:register('close', handler(self, self.onClose))endfunction Service:onStart()    self.handler:onStart()    return trueendfunction Service:onClose()    return trueendreturn Service